<template>
  <div class="placeholder-page">
    <el-card>
      <div class="placeholder-content">
        <el-icon class="placeholder-icon"><Tools /></el-icon>
        <h2>功能开发中</h2>
        <p>{{ pageTitle }}功能正在开发中，敬请期待...</p>
        <el-button type="primary" @click="$router.push('/staff')">
          返回首页
        </el-button>
      </div>
    </el-card>
  </div>
</template>

<script setup>
import { computed } from 'vue'
import { useRoute } from 'vue-router'
import { Tools } from '@element-plus/icons-vue'

const route = useRoute()

const pageTitle = computed(() => {
  return route.meta?.title || '该页面'
})
</script>

<style scoped>
.placeholder-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
}

.placeholder-content {
  text-align: center;
  padding: 40px;
}

.placeholder-icon {
  font-size: 64px;
  color: #409eff;
  margin-bottom: 20px;
}

.placeholder-content h2 {
  color: #333;
  margin-bottom: 12px;
}

.placeholder-content p {
  color: #666;
  margin-bottom: 24px;
}
</style>